<?php

  //test

class Team {
	private $name;
	CONST EMPTY_NAME = 1;
	CONST CORRECT_NAME = 0;
	
	public function __construct($name){
		$this->setTeamName($name);
	}
	
	public function getTeamName(){
		return $this->name;
	}
	
	public function setTeamName($newTeamName){
		$this->name = $newTeamName;
	}
	
	public function addslashesTeamName(){
		return addslashes($this->name);
	}
	
	public function validationTeamName($name){
		if($name == null)
			return self::EMPTY_NAME;
		else 
			return self::CORRECT_NAME;		
	}
}



?>